﻿using System.Data;
using Pantry.DataAccess;
using Pantry.Entity;

namespace Pantry.Business
{
    public class ServiceOrgRelateBus
    {
        private readonly ServiceOrgRelateDao _serviceOrgRelateDao;
        public ServiceOrgRelateBus()
        {
            _serviceOrgRelateDao = new ServiceOrgRelateDao();
        }
        public DataTable Select(int serviceParentId, int organisationId)
        {
            return _serviceOrgRelateDao.Select(serviceParentId, organisationId);

        }
        public bool Insert(ServiceOrgRelate serviceOrgRealate)
        {
            return _serviceOrgRelateDao.Insert(serviceOrgRealate);
        }
        public bool Update(ServiceOrgRelate serviceOrgRealate)
        {
            return _serviceOrgRelateDao.Update(serviceOrgRealate);
        }
        public bool Delete(ServiceOrgRelate serviceOrgRealate)
        {
            return _serviceOrgRelateDao.Delete(serviceOrgRealate);
        }
         public bool IsExist(ServiceOrgRelate serviceOrgRelate)
         {
             return _serviceOrgRelateDao.IsExist(serviceOrgRelate);
         }
    }
}
